package com.lalameow.serverlogingate;

import com.lalameow.serverlogingate.command.NetGateCommand;
import com.lalameow.serverlogingate.utiles.CryptUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.security.KeyPair;
import java.security.PrivateKey;
import java.security.PublicKey;


@SpringBootApplication
public class LogingateApplication {
	public static ConfigurableApplicationContext configurableContext;
	public static PublicKey publicKey;
	public static PrivateKey privateKey;
	public static void main(String[] args) {
		KeyPair keyPair=CryptUtil.generateKeyPair();
		privateKey=keyPair.getPrivate();
		publicKey=keyPair.getPublic();
		configurableContext=SpringApplication.run(LogingateApplication.class, args);
	}


}
